﻿<?phpinclude("../public_files/conn.php");			$email=$_POST['email'];		$pwd=$_POST['password'];		$sql="select * from userinf where email='$email'";		$result=mysql_query($sql);		$row=mysql_fetch_array($result);				if($row){														if( $row['password']==md5($pwd)){								session_start();				$a=1;				$_SESSION['username']=$row['username'];				$_SESSION['userid']=$row['id'];				$_SESSION['status']=$a;				$_SESSION['photo_path']=$row['photo_path'];			//记录用户是否登录<a></a>				echo '<div class="un_useful_5">						<span class="log_tetx" > <a href="Complete.php">'.$_SESSION['username'].'</a></span>					</div>					<div class="un_useful_6">						<span class="un_useful_7"> | </span>						<span class="reg_text" onclick="destroy()">退出</span>					</div>';				}else{						echo "1";//密码错误																							}		}else{		echo "2";//用户不存在"							} ?>